package com.example.yixueban.mapper;

import com.example.yixueban.domain.Teacher;
import com.example.yixueban.domain.TeacherExample;
import com.example.yixueban.req.main.TeacherList_Req;
import com.example.yixueban.resp.login.AccountInfo_resp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * User: Wang YiHan
 * Date: 2021/8/9 20:11
 * Email: 783096044@qq.com
 * File_Name: TeacherMapper
**/
@Mapper
public interface TeacherMapper {
    long countByExample(TeacherExample example);

    int deleteByExample(TeacherExample example);

    int deleteByPrimaryKey(Integer teacherId);

    int insert(Teacher record);

    int insertSelective(Teacher record);

    List<Teacher> selectByExample(TeacherExample example);

    Teacher selectByPrimaryKey(Integer teacherId);

    int updateByExampleSelective(@Param("record") Teacher record, @Param("example") TeacherExample example);

    int updateByExample(@Param("record") Teacher record, @Param("example") TeacherExample example);

    int updateByPrimaryKeySelective(Teacher record);

    int updateByPrimaryKey(Teacher record);

    AccountInfo_resp teacherLogin(@Param("number") String number, @Param("pwd") String pwd);

    int teacherRegister(@Param("number") String number,@Param("pwd") String pwd);

    Teacher selectByTeacher_number(String inputNumber);

    List<TeacherList_Req> getTeacherReqList();

    List<Teacher> selectByOneInfo(@Param("data") String data);
}